Optimal. Leaf size=117 \[ \frac{(b c-a d) (c+d x)^{n-1} (e+f x)^{1-n}}{d (1-n) (d e-c f)}+\frac{b (c+d x)^n (e+f x)^{-n} \left (\frac{d (e+f x)}{d e-c f}\right )^n \, _2F_1\left (n,n;n+1;-\frac{f (c+d x)}{d e-c f}\right )}{d^2 n} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.177895, antiderivative size = 117, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125 \[ \frac{(b c-a d) (c+d x)^{n-1} (e+f x)^{1-n}}{d (1-n) (d e-c f)}+\frac{b (c+d x)^n (e+f x)^{-n} \left (\frac{d (e+f x)}{d e-c f}\right )^n \, _2F_1\left (n,n;n+1;-\frac{f (c+d x)}{d e-c f}\right )}{d^2 n} \]
Antiderivative was successfully verified.
[In] Int[((a + b*x)*(c + d*x)^(-2 + n))/(e + f*x)^n,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 22.8221, size = 88, normalized size = 0.75 \[ \frac{b \left (\frac{d \left (- e - f x\right )}{c f - d e}\right )^{n} \left (c + d x\right )^{n} \left (e + f x\right )^{- n}{{}_{2}F_{1}\left (\begin{matrix} n, n \\ n + 1 \end{matrix}\middle |{\frac{f \left (c + d x\right )}{c f - d e}} \right )}}{d^{2} n} + \frac{\left (c + d x\right )^{n - 1} \left (e + f x\right )^{- n + 1} \left (a d - b c\right )}{d \left (- n + 1\right ) \left (c f - d e\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b*x+a)*(d*x+c)**(-2+n)/((f*x+e)**n),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.254743, size = 129, normalized size = 1.1 \[ \frac{(c+d x)^{n-1} (e+f x)^{1-n} \left (\frac{f (c+d x)}{c f-d e}\right )^{-n} \left ((a d-b c) \left (\frac{f (c+d x)}{c f-d e}\right )^n+b (c+d x) \, _2F_1\left (1-n,1-n;2-n;\frac{d (e+f x)}{d e-c f}\right )\right )}{d (n-1) (d e-c f)} \]
Antiderivative was successfully verified.
[In] Integrate[((a + b*x)*(c + d*x)^(-2 + n))/(e + f*x)^n,x]
[Out]
_______________________________________________________________________________________
Maple [F] time = 0.075, size = 0, normalized size = 0. \[ \int{\frac{ \left ( bx+a \right ) \left ( dx+c \right ) ^{-2+n}}{ \left ( fx+e \right ) ^{n}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b*x+a)*(d*x+c)^(-2+n)/((f*x+e)^n),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int{\left (b x + a\right )}{\left (d x + c\right )}^{n - 2}{\left (f x + e\right )}^{-n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)*(d*x + c)^(n - 2)/(f*x + e)^n,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \[{\rm integral}\left (\frac{{\left (b x + a\right )}{\left (d x + c\right )}^{n - 2}}{{\left (f x + e\right )}^{n}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)*(d*x + c)^(n - 2)/(f*x + e)^n,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x+a)*(d*x+c)**(-2+n)/((f*x+e)**n),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (b x + a\right )}{\left (d x + c\right )}^{n - 2}}{{\left (f x + e\right )}^{n}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)*(d*x + c)^(n - 2)/(f*x + e)^n,x, algorithm="giac")
[Out]